Optimal. Leaf size=38 \[ -\frac{\sin ^3(a+b x)}{3 b}-\frac{\sin (a+b x)}{b}+\frac{\tanh ^{-1}(\sin (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0266243, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2592, 302, 206} \[ -\frac{\sin ^3(a+b x)}{3 b}-\frac{\sin (a+b x)}{b}+\frac{\tanh ^{-1}(\sin (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2592
Rule 302
Rule 206
Rubi steps
\begin{align*} \int \sin ^3(a+b x) \tan (a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^4}{1-x^2} \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (-1-x^2+\frac{1}{1-x^2}\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=-\frac{\sin (a+b x)}{b}-\frac{\sin ^3(a+b x)}{3 b}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac{\tanh ^{-1}(\sin (a+b x))}{b}-\frac{\sin (a+b x)}{b}-\frac{\sin ^3(a+b x)}{3 b}\\ \end{align*}
Mathematica [A] time = 0.0146207, size = 38, normalized size = 1. \[ -\frac{\sin ^3(a+b x)}{3 b}-\frac{\sin (a+b x)}{b}+\frac{\tanh ^{-1}(\sin (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 44, normalized size = 1.2 \begin{align*} -{\frac{ \left ( \sin \left ( bx+a \right ) \right ) ^{3}}{3\,b}}-{\frac{\sin \left ( bx+a \right ) }{b}}+{\frac{\ln \left ( \sec \left ( bx+a \right ) +\tan \left ( bx+a \right ) \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03131, size = 62, normalized size = 1.63 \begin{align*} -\frac{2 \, \sin \left (b x + a\right )^{3} - 3 \, \log \left (\sin \left (b x + a\right ) + 1\right ) + 3 \, \log \left (\sin \left (b x + a\right ) - 1\right ) + 6 \, \sin \left (b x + a\right )}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.70495, size = 132, normalized size = 3.47 \begin{align*} \frac{2 \,{\left (\cos \left (b x + a\right )^{2} - 4\right )} \sin \left (b x + a\right ) + 3 \, \log \left (\sin \left (b x + a\right ) + 1\right ) - 3 \, \log \left (-\sin \left (b x + a\right ) + 1\right )}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17344, size = 65, normalized size = 1.71 \begin{align*} -\frac{2 \, \sin \left (b x + a\right )^{3} - 3 \, \log \left ({\left | \sin \left (b x + a\right ) + 1 \right |}\right ) + 3 \, \log \left ({\left | \sin \left (b x + a\right ) - 1 \right |}\right ) + 6 \, \sin \left (b x + a\right )}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]